new Vue({
  el: '#app',
  data() {
    return {
      form: {
        Data:'group_rotation_pic'
      },
      total: 0,
      tableData: [],		//表格数据
    }
  },
  mounted() {
    this.getList(this.form)
  },
  methods: {
    getList(data) {     //换页方法
      const _this = this
      $.ajax({
        type: 'POST',
        url: `${DomainName}/GoodsFileInquiry`,
        data,
        complete: function (XMLHttpRequest) {
          if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
            window.parent.document.location.href = '../../../'+XMLHttpRequest.getResponseHeader("CONTENTPATH");
          }
        },
        success: function (Result) {
          console.log(Result);
          _this.tableData = Result
        },
        dataType: "json"
      });
    },
    addContract() {
      window.location.href = './Add.html'
    },
  },
})
